package com.wlyuan.open.scanner.repository;

import com.wlyuan.open.scanner.dao.entity.BalanceBillindexDO;
import com.wlyuan.open.scanner.domain.finance.Bill;
import com.wlyuan.open.scanner.domain.transport.Transport;

import java.util.List;

/**
 * @author lijing
 */
public interface BillRepository {

    /**
     * 同步
     */
    public void sync();

    /**
     * 查询财务对账单
     *
     * @return
     */
    List<Bill> list();

    /**
     * 根据ID查询信息
     *
     * @return
     */
    Bill getById(Long financeId);

    /**
     * 获取对账单运单
     *
     * @param billId
     * @return
     */
    List<Transport> processWayBill(Long billId);

    /**
     * 根据租户获取
     *
     * @param tenantId
     */
    void getByTenantId(Long tenantId);

    Bill parse(Long id, Long up, Long down, Long tenantId);

    List<Long> getTime(String startTime, String endTime);

    List<Long> getTenantIdTime(Long tenantId, String startTime, String endTime);

    void processCustomer(BalanceBillindexDO data);

    void processCarrier(BalanceBillindexDO data);
}
